package com.jungle.app.domain.bo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.jungle.common.core.domain.BaseEntity;
import com.jungle.common.core.validate.AddGroup;
import com.jungle.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

import java.time.LocalDateTime;
import java.util.Date;

import com.jungle.common.core.domain.MybatisBaseEntity;

import com.jungle.common.core.domain.MybatisBaseEntity;
import org.springframework.web.multipart.MultipartFile;

/**
 * 图片链接数据业务对象 img_link_data
 *
 * @author jungle
 * @date 2023-09-28
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ImgLinkDataBo extends MybatisBaseEntity {

    /**
     * id
     */
    @ExcelIgnore
    private String id;

    /**
     * 关联sys_oss表，获取文件信息
     */
    @ExcelIgnore
    private Long ossId;

    /**
     * 跳转连接
     */
    @ExcelProperty("跳转连接")
    private String hrefUrl;

    /**
     * 图片链接，后台自动拼接，aliyun的url+图片名
     */
    @ExcelProperty("图片链接")
    private String imgUrl;

    /**
     * 跳转类型
     */
    @ExcelProperty("跳转类型")
    private String type;

    /**
     * 用途
     */
    @ExcelProperty("用途")
    private String useTo;

    /**
     * 描述
     */
    @ExcelProperty("描述")
    private String description;

    /**
     * 图片名，文件名+后缀
     */
    @ExcelProperty("图片名")
    private String imgName;

//    private MultipartFile file;
}
